package com.iqiyi.service.impl;

import com.iqiyi.dto.Usersa;
import com.iqiyi.mapper.IqiyiUseraMapper;
import com.iqiyi.po.IqiyiUser;
import com.iqiyi.service.IqiyiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IqiyiServiceImpl implements IqiyiService {
    @Autowired(required = false)
    IqiyiUseraMapper iqiyiUserMapper;

    @Override
    public int insertUser(IqiyiUser iqiyiUser) {
        return iqiyiUserMapper.insertUser(iqiyiUser);
    }

    @Override
    public IqiyiUser findByiqiyiUser(Integer uid) {
        return iqiyiUserMapper.findByiqiyiUser(uid);
    }

    @Override
    public int updateByUser(Usersa iqiyiUser) {
        return iqiyiUserMapper.updateByUser(iqiyiUser);
    }

    @Override
    public List<IqiyiUser> findAllUser(IqiyiUser iqiyiUser) {
        return iqiyiUserMapper.findAllUser(iqiyiUser);
    }
}
